﻿<Page
    x:Class="KoolearnSample.MainPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="using:KoolearnSample"
    xmlns:callisto="using:Callisto.Controls"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d">
    <Grid Style="{StaticResource BackgroundStyle}">
        <StackPanel>
            <TextBlock Margin="30" FontSize="40"
                       Text="新东方API测试代码"></TextBlock>
            <Button Margin="30,0" Content="公开课API测试"
                    FontSize="30"
                    Width="500"
                    Height="60"
                    Click="Button_Click_1"></Button>
            <Button Margin="30,0" Content="注册页面测试"
                FontSize="30"
                Width="500"
                Height="60"
                Click="Button_Click_3"></Button>
            <Button Margin="30,0" Content="提问"
                FontSize="30"
                Width="500"
                Height="60"
                Click="Button_Click_4"></Button>
            <Button Margin="30,0" Content="考试测试"
                FontSize="30"
                Width="500"
                Height="60"
                Click="Button_Click_6"></Button>
        </StackPanel>
        <!--注册测试界面-->
        <callisto:CustomDialog x:FieldModifier="public" x:Name="RegisterDialog" 
                               Title="注册新用户" 
                               Background="Teal" BackButtonVisibility="Visible">
            <StackPanel>
                <TextBlock Margin="0,0,0,8" FontSize="14.6667" FontWeight="SemiLight" TextWrapping="Wrap">
                    新东方注册页面测试
                </TextBlock>
                <callisto:WatermarkTextBox HorizontalAlignment="Left" Watermark="请输入用户名..." Width="400" Height="35"  x:Name="WMName" />
                <callisto:WatermarkTextBox HorizontalAlignment="Left" Watermark="请输入Email..." Margin="0,10" Width="400" Height="35"  x:Name="WMEmail"/>
                <PasswordBox Width="400" HorizontalAlignment="Left" Name="Pwd"></PasswordBox>
                <StackPanel Margin="0,20,0,0" HorizontalAlignment="Right" Orientation="Horizontal">
                    <Button Content="确定" Click="Button_Click_2" Width="90" Margin="0,0,20,0" />
                    <Button Content="取消" Width="90" Click="DialogCancelClicked" />
                </StackPanel>
            </StackPanel>
        </callisto:CustomDialog>
        <!--提问测试界面-->
        <callisto:CustomDialog x:FieldModifier="public" x:Name="AskDialog" 
                               Title="用户提问" 
                               Background="Teal" BackButtonVisibility="Visible">
            <StackPanel>
                <TextBlock Margin="0,0,0,8" FontSize="14.6667" FontWeight="SemiLight" TextWrapping="Wrap">
                    新东方提问页面测试
                </TextBlock>
                <callisto:WatermarkTextBox TextWrapping="Wrap" HorizontalAlignment="Left" Watermark="请输入用户名..." Width="400" Height="200"  x:Name="WMQuestion" />
                <StackPanel Margin="0,20,0,0" HorizontalAlignment="Right" Orientation="Horizontal">
                    <Button Content="确定" Click="Button_Click_5" Width="90" Margin="0,0,20,0" />
                    <Button Content="取消" Width="90" Click="DialogCancelClicked" />
                </StackPanel>
            </StackPanel>
        </callisto:CustomDialog>
    </Grid>
</Page>
